﻿using System.Collections.Generic;
using TheClerk;
using TheClerk.Access;

namespace TheClerk.Access
{
    class AccessControlList
    {
        private List<AccessControlEntry> _LACE;
        private AccessControlEntry[] _ace;

        internal AccessControlEntry[] ACE
        {
            get
            {
                return _LACE.ToArray();
            }
        }

        /// <summary>
        /// Check the identity versus this ACL
        /// </summary>
        /// <param name="input">the identity to verify</param>
        /// <param name="tocheck">the operation the identity wishes to perform</param>
        void Challenge(Identity input, Operation tocheck)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// List of keys and permissions
        /// </summary>
        public AccessControlList( )
            : base()
        {
        }

        public void Push(AccessControlEntry Push, bool PushToFront )
        {

            if (PushToFront)
            {
                
            }
        }

    }
}
